package com.wg.net.server.http;

/**
 * @author 少爷123
 */
public enum HttpMethod {
    ALL,
    POST,
    GET,
    ;

    public static HttpMethod valueOfMethod(String method) {
        if ("POST".equals(method)) {
            return POST;
        } else if ("GET".equals(method)) {
            return GET;
        } else {
            return null;
        }
    }
}
